{% extends "base.html" %} {% block title %}Refund Center - Quick Care Connect{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

Refund Center

Dashboard
Total Disputes
{{ refund_stats.total_disputes }}
Pending Refunds
{{ refund_stats.pending_refunds }}
Processed Refunds
{{ refund_stats.processed_refunds }}
Rejected Disputes
{{ refund_stats.rejected_disputes }}
{% if refunds %}
{% for r in refunds %}
Refund #{{ r.id }} (Appointment #{{ r.appointment_id }})
Reason: {{ (r.reason or 'other')|replace('_', ' ')|title }} Created: {{ r.created_at.strftime('%d %b %Y %H:%M') if r.created_at else '-' }}
PKR {{ "%.2f"|format(r.amount) }}
{{ r.status }}
{% if r.status == 'pending' %}
Submit your payment details so admin can transfer your refund and upload proof.
{% else %}
Refund completed on {{ r.processed_at.strftime('%d %b %Y %H:%M') if r.processed_at else '-' }}. {% if r.payout_detail and r.payout_detail.admin_proof_path %} View admin proof {% endif %}
{% endif %}
{% endfor %}
{% else %}
No refunds yet

If any refund is created for your appointments, it will appear here.

{% endif %}
{% endblock %} {% block extra_js %} {{ super() }} {% endblock %}